package com.hjb.service.domain.enveloprule;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EnvelopRuleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EnvelopRuleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andProductTypeIsNull() {
            addCriterion("product_type is null");
            return (Criteria) this;
        }

        public Criteria andProductTypeIsNotNull() {
            addCriterion("product_type is not null");
            return (Criteria) this;
        }

        public Criteria andProductTypeEqualTo(Integer value) {
            addCriterion("product_type =", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeNotEqualTo(Integer value) {
            addCriterion("product_type <>", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeGreaterThan(Integer value) {
            addCriterion("product_type >", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_type >=", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeLessThan(Integer value) {
            addCriterion("product_type <", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeLessThanOrEqualTo(Integer value) {
            addCriterion("product_type <=", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeIn(List<Integer> values) {
            addCriterion("product_type in", values, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeNotIn(List<Integer> values) {
            addCriterion("product_type not in", values, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeBetween(Integer value1, Integer value2) {
            addCriterion("product_type between", value1, value2, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("product_type not between", value1, value2, "productType");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(BigDecimal value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(BigDecimal value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(BigDecimal value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(BigDecimal value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<BigDecimal> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<BigDecimal> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andActiveDaysIsNull() {
            addCriterion("active_days is null");
            return (Criteria) this;
        }

        public Criteria andActiveDaysIsNotNull() {
            addCriterion("active_days is not null");
            return (Criteria) this;
        }

        public Criteria andActiveDaysEqualTo(Integer value) {
            addCriterion("active_days =", value, "activeDays");
            return (Criteria) this;
        }

        public Criteria andActiveDaysNotEqualTo(Integer value) {
            addCriterion("active_days <>", value, "activeDays");
            return (Criteria) this;
        }

        public Criteria andActiveDaysGreaterThan(Integer value) {
            addCriterion("active_days >", value, "activeDays");
            return (Criteria) this;
        }

        public Criteria andActiveDaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("active_days >=", value, "activeDays");
            return (Criteria) this;
        }

        public Criteria andActiveDaysLessThan(Integer value) {
            addCriterion("active_days <", value, "activeDays");
            return (Criteria) this;
        }

        public Criteria andActiveDaysLessThanOrEqualTo(Integer value) {
            addCriterion("active_days <=", value, "activeDays");
            return (Criteria) this;
        }

        public Criteria andActiveDaysIn(List<Integer> values) {
            addCriterion("active_days in", values, "activeDays");
            return (Criteria) this;
        }

        public Criteria andActiveDaysNotIn(List<Integer> values) {
            addCriterion("active_days not in", values, "activeDays");
            return (Criteria) this;
        }

        public Criteria andActiveDaysBetween(Integer value1, Integer value2) {
            addCriterion("active_days between", value1, value2, "activeDays");
            return (Criteria) this;
        }

        public Criteria andActiveDaysNotBetween(Integer value1, Integer value2) {
            addCriterion("active_days not between", value1, value2, "activeDays");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeIsNull() {
            addCriterion("invest_time_type is null");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeIsNotNull() {
            addCriterion("invest_time_type is not null");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeEqualTo(Integer value) {
            addCriterion("invest_time_type =", value, "investTimeType");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeNotEqualTo(Integer value) {
            addCriterion("invest_time_type <>", value, "investTimeType");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeGreaterThan(Integer value) {
            addCriterion("invest_time_type >", value, "investTimeType");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("invest_time_type >=", value, "investTimeType");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeLessThan(Integer value) {
            addCriterion("invest_time_type <", value, "investTimeType");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeLessThanOrEqualTo(Integer value) {
            addCriterion("invest_time_type <=", value, "investTimeType");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeIn(List<Integer> values) {
            addCriterion("invest_time_type in", values, "investTimeType");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeNotIn(List<Integer> values) {
            addCriterion("invest_time_type not in", values, "investTimeType");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeBetween(Integer value1, Integer value2) {
            addCriterion("invest_time_type between", value1, value2, "investTimeType");
            return (Criteria) this;
        }

        public Criteria andInvestTimeTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("invest_time_type not between", value1, value2, "investTimeType");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeIsNull() {
            addCriterion("min_invest_time is null");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeIsNotNull() {
            addCriterion("min_invest_time is not null");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeEqualTo(Integer value) {
            addCriterion("min_invest_time =", value, "minInvestTime");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeNotEqualTo(Integer value) {
            addCriterion("min_invest_time <>", value, "minInvestTime");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeGreaterThan(Integer value) {
            addCriterion("min_invest_time >", value, "minInvestTime");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("min_invest_time >=", value, "minInvestTime");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeLessThan(Integer value) {
            addCriterion("min_invest_time <", value, "minInvestTime");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeLessThanOrEqualTo(Integer value) {
            addCriterion("min_invest_time <=", value, "minInvestTime");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeIn(List<Integer> values) {
            addCriterion("min_invest_time in", values, "minInvestTime");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeNotIn(List<Integer> values) {
            addCriterion("min_invest_time not in", values, "minInvestTime");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeBetween(Integer value1, Integer value2) {
            addCriterion("min_invest_time between", value1, value2, "minInvestTime");
            return (Criteria) this;
        }

        public Criteria andMinInvestTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("min_invest_time not between", value1, value2, "minInvestTime");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeIsNull() {
            addCriterion("max_invest_time is null");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeIsNotNull() {
            addCriterion("max_invest_time is not null");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeEqualTo(Integer value) {
            addCriterion("max_invest_time =", value, "maxInvestTime");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeNotEqualTo(Integer value) {
            addCriterion("max_invest_time <>", value, "maxInvestTime");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeGreaterThan(Integer value) {
            addCriterion("max_invest_time >", value, "maxInvestTime");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("max_invest_time >=", value, "maxInvestTime");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeLessThan(Integer value) {
            addCriterion("max_invest_time <", value, "maxInvestTime");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeLessThanOrEqualTo(Integer value) {
            addCriterion("max_invest_time <=", value, "maxInvestTime");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeIn(List<Integer> values) {
            addCriterion("max_invest_time in", values, "maxInvestTime");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeNotIn(List<Integer> values) {
            addCriterion("max_invest_time not in", values, "maxInvestTime");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeBetween(Integer value1, Integer value2) {
            addCriterion("max_invest_time between", value1, value2, "maxInvestTime");
            return (Criteria) this;
        }

        public Criteria andMaxInvestTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("max_invest_time not between", value1, value2, "maxInvestTime");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountIsNull() {
            addCriterion("min_invest_amount is null");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountIsNotNull() {
            addCriterion("min_invest_amount is not null");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountEqualTo(BigDecimal value) {
            addCriterion("min_invest_amount =", value, "minInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountNotEqualTo(BigDecimal value) {
            addCriterion("min_invest_amount <>", value, "minInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountGreaterThan(BigDecimal value) {
            addCriterion("min_invest_amount >", value, "minInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("min_invest_amount >=", value, "minInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountLessThan(BigDecimal value) {
            addCriterion("min_invest_amount <", value, "minInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("min_invest_amount <=", value, "minInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountIn(List<BigDecimal> values) {
            addCriterion("min_invest_amount in", values, "minInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountNotIn(List<BigDecimal> values) {
            addCriterion("min_invest_amount not in", values, "minInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("min_invest_amount between", value1, value2, "minInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMinInvestAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("min_invest_amount not between", value1, value2, "minInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountIsNull() {
            addCriterion("max_invest_amount is null");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountIsNotNull() {
            addCriterion("max_invest_amount is not null");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountEqualTo(BigDecimal value) {
            addCriterion("max_invest_amount =", value, "maxInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountNotEqualTo(BigDecimal value) {
            addCriterion("max_invest_amount <>", value, "maxInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountGreaterThan(BigDecimal value) {
            addCriterion("max_invest_amount >", value, "maxInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("max_invest_amount >=", value, "maxInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountLessThan(BigDecimal value) {
            addCriterion("max_invest_amount <", value, "maxInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("max_invest_amount <=", value, "maxInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountIn(List<BigDecimal> values) {
            addCriterion("max_invest_amount in", values, "maxInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountNotIn(List<BigDecimal> values) {
            addCriterion("max_invest_amount not in", values, "maxInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("max_invest_amount between", value1, value2, "maxInvestAmount");
            return (Criteria) this;
        }

        public Criteria andMaxInvestAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("max_invest_amount not between", value1, value2, "maxInvestAmount");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysIsNull() {
            addCriterion("expired_days is null");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysIsNotNull() {
            addCriterion("expired_days is not null");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysEqualTo(Integer value) {
            addCriterion("expired_days =", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysNotEqualTo(Integer value) {
            addCriterion("expired_days <>", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysGreaterThan(Integer value) {
            addCriterion("expired_days >", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("expired_days >=", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysLessThan(Integer value) {
            addCriterion("expired_days <", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysLessThanOrEqualTo(Integer value) {
            addCriterion("expired_days <=", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysIn(List<Integer> values) {
            addCriterion("expired_days in", values, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysNotIn(List<Integer> values) {
            addCriterion("expired_days not in", values, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysBetween(Integer value1, Integer value2) {
            addCriterion("expired_days between", value1, value2, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysNotBetween(Integer value1, Integer value2) {
            addCriterion("expired_days not between", value1, value2, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNull() {
            addCriterion("modify_time is null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNotNull() {
            addCriterion("modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeEqualTo(Date value) {
            addCriterion("modify_time =", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotEqualTo(Date value) {
            addCriterion("modify_time <>", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThan(Date value) {
            addCriterion("modify_time >", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modify_time >=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThan(Date value) {
            addCriterion("modify_time <", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("modify_time <=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIn(List<Date> values) {
            addCriterion("modify_time in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotIn(List<Date> values) {
            addCriterion("modify_time not in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeBetween(Date value1, Date value2) {
            addCriterion("modify_time between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("modify_time not between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andField1IsNull() {
            addCriterion("field1 is null");
            return (Criteria) this;
        }

        public Criteria andField1IsNotNull() {
            addCriterion("field1 is not null");
            return (Criteria) this;
        }

        public Criteria andField1EqualTo(String value) {
            addCriterion("field1 =", value, "field1");
            return (Criteria) this;
        }

        public Criteria andField1NotEqualTo(String value) {
            addCriterion("field1 <>", value, "field1");
            return (Criteria) this;
        }

        public Criteria andField1GreaterThan(String value) {
            addCriterion("field1 >", value, "field1");
            return (Criteria) this;
        }

        public Criteria andField1GreaterThanOrEqualTo(String value) {
            addCriterion("field1 >=", value, "field1");
            return (Criteria) this;
        }

        public Criteria andField1LessThan(String value) {
            addCriterion("field1 <", value, "field1");
            return (Criteria) this;
        }

        public Criteria andField1LessThanOrEqualTo(String value) {
            addCriterion("field1 <=", value, "field1");
            return (Criteria) this;
        }

        public Criteria andField1Like(String value) {
            addCriterion("field1 like", value, "field1");
            return (Criteria) this;
        }

        public Criteria andField1NotLike(String value) {
            addCriterion("field1 not like", value, "field1");
            return (Criteria) this;
        }

        public Criteria andField1In(List<String> values) {
            addCriterion("field1 in", values, "field1");
            return (Criteria) this;
        }

        public Criteria andField1NotIn(List<String> values) {
            addCriterion("field1 not in", values, "field1");
            return (Criteria) this;
        }

        public Criteria andField1Between(String value1, String value2) {
            addCriterion("field1 between", value1, value2, "field1");
            return (Criteria) this;
        }

        public Criteria andField1NotBetween(String value1, String value2) {
            addCriterion("field1 not between", value1, value2, "field1");
            return (Criteria) this;
        }

        public Criteria andField2IsNull() {
            addCriterion("field2 is null");
            return (Criteria) this;
        }

        public Criteria andField2IsNotNull() {
            addCriterion("field2 is not null");
            return (Criteria) this;
        }

        public Criteria andField2EqualTo(String value) {
            addCriterion("field2 =", value, "field2");
            return (Criteria) this;
        }

        public Criteria andField2NotEqualTo(String value) {
            addCriterion("field2 <>", value, "field2");
            return (Criteria) this;
        }

        public Criteria andField2GreaterThan(String value) {
            addCriterion("field2 >", value, "field2");
            return (Criteria) this;
        }

        public Criteria andField2GreaterThanOrEqualTo(String value) {
            addCriterion("field2 >=", value, "field2");
            return (Criteria) this;
        }

        public Criteria andField2LessThan(String value) {
            addCriterion("field2 <", value, "field2");
            return (Criteria) this;
        }

        public Criteria andField2LessThanOrEqualTo(String value) {
            addCriterion("field2 <=", value, "field2");
            return (Criteria) this;
        }

        public Criteria andField2Like(String value) {
            addCriterion("field2 like", value, "field2");
            return (Criteria) this;
        }

        public Criteria andField2NotLike(String value) {
            addCriterion("field2 not like", value, "field2");
            return (Criteria) this;
        }

        public Criteria andField2In(List<String> values) {
            addCriterion("field2 in", values, "field2");
            return (Criteria) this;
        }

        public Criteria andField2NotIn(List<String> values) {
            addCriterion("field2 not in", values, "field2");
            return (Criteria) this;
        }

        public Criteria andField2Between(String value1, String value2) {
            addCriterion("field2 between", value1, value2, "field2");
            return (Criteria) this;
        }

        public Criteria andField2NotBetween(String value1, String value2) {
            addCriterion("field2 not between", value1, value2, "field2");
            return (Criteria) this;
        }

        public Criteria andField3IsNull() {
            addCriterion("field3 is null");
            return (Criteria) this;
        }

        public Criteria andField3IsNotNull() {
            addCriterion("field3 is not null");
            return (Criteria) this;
        }

        public Criteria andField3EqualTo(String value) {
            addCriterion("field3 =", value, "field3");
            return (Criteria) this;
        }

        public Criteria andField3NotEqualTo(String value) {
            addCriterion("field3 <>", value, "field3");
            return (Criteria) this;
        }

        public Criteria andField3GreaterThan(String value) {
            addCriterion("field3 >", value, "field3");
            return (Criteria) this;
        }

        public Criteria andField3GreaterThanOrEqualTo(String value) {
            addCriterion("field3 >=", value, "field3");
            return (Criteria) this;
        }

        public Criteria andField3LessThan(String value) {
            addCriterion("field3 <", value, "field3");
            return (Criteria) this;
        }

        public Criteria andField3LessThanOrEqualTo(String value) {
            addCriterion("field3 <=", value, "field3");
            return (Criteria) this;
        }

        public Criteria andField3Like(String value) {
            addCriterion("field3 like", value, "field3");
            return (Criteria) this;
        }

        public Criteria andField3NotLike(String value) {
            addCriterion("field3 not like", value, "field3");
            return (Criteria) this;
        }

        public Criteria andField3In(List<String> values) {
            addCriterion("field3 in", values, "field3");
            return (Criteria) this;
        }

        public Criteria andField3NotIn(List<String> values) {
            addCriterion("field3 not in", values, "field3");
            return (Criteria) this;
        }

        public Criteria andField3Between(String value1, String value2) {
            addCriterion("field3 between", value1, value2, "field3");
            return (Criteria) this;
        }

        public Criteria andField3NotBetween(String value1, String value2) {
            addCriterion("field3 not between", value1, value2, "field3");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}